package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 事故链影响节点-建议措施 实体类
 * 表名：risk_chain_effect_suggestion
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_chain_effect_suggestion")
public class RiskChainEffectSuggestion implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 事故链-影响节点ID
     */
    @Column(name = "effect_id", nullable = false, length = 50)
    private String effectId;
    
    /**
     * 建议措施ID
     */
    @Column(name = "suggestion_id", nullable = false)
    private Long suggestionId;
    
    /**
     * 建议措施是否必要0：否，1：必要
     * 默认值: 0
     */
    @Column(name = "necessary_flag", nullable = false)
    private Boolean necessaryFlag;
    
    /**
     * 是否计算过必要性
     * 默认值: 0
     */
    @Column(name = "evaluated_flag")
    private Boolean evaluatedFlag;
    
    @Override
    public String toString() {
        return "RiskChainEffectSuggestion{" +
            "id=" + id +
            ", effectId=" + effectId +
            ", suggestionId=" + suggestionId +
            ", necessaryFlag=" + necessaryFlag +
            ", evaluatedFlag=" + evaluatedFlag +
        '}';
    }
} 